build: Declare cairo_libs outside MSVC check block
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 15 Sep 2017 14:57:34 +0000 (15:57 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 15 Sep 2017 14:57:34 +0000 (15:57 +0100)
Otherwise there won't be a reference to it on non-MSVC builds.

meson.build

index 5051ec6fc5cbd2e40e6f52bd580e7bcaaedffd3f..5056352c33e197de869b38435f48fb6c3f0348e0 100644 (file)
@@ -373,11 +373,11 @@ if cairogobj_dep.found()
   cairogobj_pkg_found = true
 endif
 
+cairo_libs = []
 if cc.get_id() == 'msvc'
   # Fallback depedency discovery for those on Visual Studio that do not generate
   # pkg-config files in their build systems for MSVC
   # Fallback for Cairo
-  cairo_libs = []
   if not cairo_dep.found()
     if (cc.has_header('cairo.h') and cc.has_header('cairo-win32.h'))
       cairo_dep = cc.find_library('cairo')